<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="recaptchaenterprise_v1.html">reCAPTCHA Enterprise API</a> . <a href="recaptchaenterprise_v1.projects.html">projects</a> . <a href="recaptchaenterprise_v1.projects.assessments.html">assessments</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#annotate">annotate(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates an Assessment of the likelihood an event is legitimate.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="annotate">annotate(name, body=None, x__xgafv=None)</code>
  <pre>Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

Args:
  name: string, Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message to annotate an Assessment.
  &quot;accountId&quot;: &quot;A String&quot;, # Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
  &quot;annotation&quot;: &quot;A String&quot;,
  &quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
  &quot;phoneAuthenticationEvent&quot;: { # Details on a phone authentication event # Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
    &quot;eventTime&quot;: &quot;A String&quot;, # Optional. The time at which the multi-factor authentication event (challenge or verification) occurred.
    &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed.
  },
  &quot;reasons&quot;: [
    &quot;A String&quot;,
  ],
  &quot;transactionEvent&quot;: { # Describes an event in the lifecycle of a payment transaction. # Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
    &quot;eventTime&quot;: &quot;A String&quot;, # Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
    &quot;eventType&quot;: &quot;A String&quot;, # Optional. The type of this transaction event.
    &quot;reason&quot;: &quot;A String&quot;, # Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
    &quot;value&quot;: 3.14, # Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Empty response for AnnotateAssessment.
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
  <pre>Creates an Assessment of the likelihood an event is legitimate.

Args:
  parent: string, Required. The name of the project in which the assessment is created, in the format `projects/{project}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # A reCAPTCHA Enterprise assessment resource.
  &quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
    &quot;labels&quot;: [ # Output only. Labels for this request.
      &quot;A String&quot;,
    ],
  },
  &quot;accountVerification&quot;: { # Information about account verification, used for identity verification. # Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
    &quot;endpoints&quot;: [ # Optional. Endpoints that can be used for identity verification.
      { # Information about a verification endpoint that can be used for 2FA.
        &quot;emailAddress&quot;: &quot;A String&quot;, # Email address for which to trigger a verification request.
        &quot;lastVerificationTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last successful verification for the endpoint, if any.
        &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number for which to trigger a verification request. Should be given in E.164 format.
        &quot;requestToken&quot;: &quot;A String&quot;, # Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.
      },
    ],
    &quot;languageCode&quot;: &quot;A String&quot;, # Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.
    &quot;latestVerificationResult&quot;: &quot;A String&quot;, # Output only. Result of the latest account verification challenge.
    &quot;username&quot;: &quot;A String&quot;, # Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`.
  },
  &quot;assessmentEnvironment&quot;: { # The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user. # Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.
    &quot;client&quot;: &quot;A String&quot;, # Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module&#x27;s project. Examples include: - &quot;github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager&quot; - &quot;wordpress.org/plugins/recaptcha-something&quot;
    &quot;version&quot;: &quot;A String&quot;, # Optional. The version of the client module. For example, &quot;1.0.0&quot;.
  },
  &quot;event&quot;: { # The event being assessed. # Optional. The event being assessed.
    &quot;expectedAction&quot;: &quot;A String&quot;, # Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise.
    &quot;express&quot;: True or False, # Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference an Express site key.
    &quot;firewallPolicyEvaluation&quot;: True or False, # Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response.
    &quot;fraudPrevention&quot;: &quot;A String&quot;, # Optional. The Fraud Prevention setting for this assessment.
    &quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
    &quot;headers&quot;: [ # Optional. HTTP header information about the request.
      &quot;A String&quot;,
    ],
    &quot;ja3&quot;: &quot;A String&quot;, # Optional. JA3 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/salesforce/ja3.
    &quot;ja4&quot;: &quot;A String&quot;, # Optional. JA4 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/FoxIO-LLC/ja4.
    &quot;requestedUri&quot;: &quot;A String&quot;, # Optional. The URI resource the user requested that triggered an assessment.
    &quot;siteKey&quot;: &quot;A String&quot;, # Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token.
    &quot;token&quot;: &quot;A String&quot;, # Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.
    &quot;transactionData&quot;: { # Transaction data associated with a payment protected by reCAPTCHA Enterprise. # Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Enterprise Fraud Prevention and the FraudPreventionAssessment component in the response.
      &quot;billingAddress&quot;: { # Structured address format for billing and shipping addresses. # Optional. Address associated with the payment method when applicable.
        &quot;address&quot;: [ # Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
          &quot;A String&quot;,
        ],
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. The state, province, or otherwise administrative area of the address.
        &quot;locality&quot;: &quot;A String&quot;, # Optional. The town/city of the address.
        &quot;postalCode&quot;: &quot;A String&quot;, # Optional. The postal or ZIP code of the address.
        &quot;recipient&quot;: &quot;A String&quot;, # Optional. The recipient name, potentially including information such as &quot;care of&quot;.
        &quot;regionCode&quot;: &quot;A String&quot;, # Optional. The CLDR country/region of the address.
      },
      &quot;cardBin&quot;: &quot;A String&quot;, # Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.
      &quot;cardLastFour&quot;: &quot;A String&quot;, # Optional. The last four digits of the card.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Optional. The currency code in ISO-4217 format.
      &quot;gatewayInfo&quot;: { # Details about the transaction from the gateway. # Optional. Information about the payment gateway&#x27;s response to the transaction.
        &quot;avsResponseCode&quot;: &quot;A String&quot;, # Optional. AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).
        &quot;cvvResponseCode&quot;: &quot;A String&quot;, # Optional. CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).
        &quot;gatewayResponseCode&quot;: &quot;A String&quot;, # Optional. Gateway response code describing the state of the transaction.
        &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the gateway service (for example, stripe, square, paypal).
      },
      &quot;items&quot;: [ # Optional. Items purchased in this transaction.
        { # Line items being purchased in this transaction.
          &quot;merchantAccountId&quot;: &quot;A String&quot;, # Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
          &quot;name&quot;: &quot;A String&quot;, # Optional. The full name of the item.
          &quot;quantity&quot;: &quot;A String&quot;, # Optional. The quantity of this item that is being purchased.
          &quot;value&quot;: 3.14, # Optional. The value per item that the user is paying, in the transaction currency, after discounts.
        },
      ],
      &quot;merchants&quot;: [ # Optional. Information about the user or users fulfilling the transaction.
        { # Details about a user&#x27;s account involved in the transaction.
          &quot;accountId&quot;: &quot;A String&quot;, # Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
          &quot;creationMs&quot;: &quot;A String&quot;, # Optional. The epoch milliseconds of the user&#x27;s account creation.
          &quot;email&quot;: &quot;A String&quot;, # Optional. The email address of the user.
          &quot;emailVerified&quot;: True or False, # Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
          &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. The phone number of the user, with country code.
          &quot;phoneVerified&quot;: True or False, # Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
        },
      ],
      &quot;paymentMethod&quot;: &quot;A String&quot;, # Optional. The payment method for the transaction. The allowed values are: * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)
      &quot;shippingAddress&quot;: { # Structured address format for billing and shipping addresses. # Optional. Destination address if this transaction involves shipping a physical item.
        &quot;address&quot;: [ # Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
          &quot;A String&quot;,
        ],
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. The state, province, or otherwise administrative area of the address.
        &quot;locality&quot;: &quot;A String&quot;, # Optional. The town/city of the address.
        &quot;postalCode&quot;: &quot;A String&quot;, # Optional. The postal or ZIP code of the address.
        &quot;recipient&quot;: &quot;A String&quot;, # Optional. The recipient name, potentially including information such as &quot;care of&quot;.
        &quot;regionCode&quot;: &quot;A String&quot;, # Optional. The CLDR country/region of the address.
      },
      &quot;shippingValue&quot;: 3.14, # Optional. The value of shipping in the specified currency. 0 for free or no shipping.
      &quot;transactionId&quot;: &quot;A String&quot;, # Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
      &quot;user&quot;: { # Details about a user&#x27;s account involved in the transaction. # Optional. Information about the user paying/initiating the transaction.
        &quot;accountId&quot;: &quot;A String&quot;, # Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
        &quot;creationMs&quot;: &quot;A String&quot;, # Optional. The epoch milliseconds of the user&#x27;s account creation.
        &quot;email&quot;: &quot;A String&quot;, # Optional. The email address of the user.
        &quot;emailVerified&quot;: True or False, # Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
        &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. The phone number of the user, with country code.
        &quot;phoneVerified&quot;: True or False, # Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
      },
      &quot;value&quot;: 3.14, # Optional. The decimal value of the transaction in the specified currency.
    },
    &quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user agent present in the request from the user&#x27;s device related to this event.
    &quot;userInfo&quot;: { # User information associated with a request protected by reCAPTCHA Enterprise. # Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.
      &quot;accountId&quot;: &quot;A String&quot;, # Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.
      &quot;createAccountTime&quot;: &quot;A String&quot;, # Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.
      &quot;userIds&quot;: [ # Optional. Identifiers associated with this user or request.
        { # An identifier associated with a user.
          &quot;email&quot;: &quot;A String&quot;, # Optional. An email address.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. A phone number. Should use the E.164 format.
          &quot;username&quot;: &quot;A String&quot;, # Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.
        },
      ],
    },
    &quot;userIpAddress&quot;: &quot;A String&quot;, # Optional. The IP address in the request from the user&#x27;s device related to this event.
    &quot;wafTokenAssessment&quot;: True or False, # Optional. Flag for running Web Application Firewall (WAF) token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.
  },
  &quot;firewallPolicyAssessment&quot;: { # Policy config assessment. # Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation.
    &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.
      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
        },
      ],
      &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    },
    &quot;firewallPolicy&quot;: { # A FirewallPolicy represents a single matching pattern and resulting actions to take. # Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.
      &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
        { # An individual action. Each action represents what to do if a policy matches.
          &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
          },
          &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
          },
          &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
          },
          &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
          },
          &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
            &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
            &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
          },
          &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
            &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
          },
        },
      ],
      &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
      &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
      &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
      &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
    },
  },
  &quot;fraudPreventionAssessment&quot;: { # Assessment for Fraud Prevention. # Output only. Assessment returned by Fraud Prevention when TransactionData is provided.
    &quot;behavioralTrustVerdict&quot;: { # Information about behavioral trust of the transaction. # Output only. Assessment of this transaction for behavioral trust.
      &quot;trust&quot;: 3.14, # Output only. Probability of this transaction attempt being executed in a behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;cardTestingVerdict&quot;: { # Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details. # Output only. Assessment of this transaction for risk of being part of a card testing attack.
      &quot;risk&quot;: 3.14, # Output only. Probability of this transaction attempt being part of a card testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;riskReasons&quot;: [ # Output only. Reasons why the transaction is probably fraudulent and received a high transaction risk score.
      { # Risk reasons applicable to the Fraud Prevention assessment.
        &quot;reason&quot;: &quot;A String&quot;, # Output only. Risk reasons applicable to the Fraud Prevention assessment.
      },
    ],
    &quot;stolenInstrumentVerdict&quot;: { # Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase. # Output only. Assessment of this transaction for risk of a stolen instrument.
      &quot;risk&quot;: 3.14, # Output only. Probability of this transaction being executed with a stolen instrument. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;transactionRisk&quot;: 3.14, # Output only. Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest).
  },
  &quot;fraudSignals&quot;: { # Fraud signals describing users and cards involved in the transaction. # Output only. Fraud Signals specific to the users involved in a payment transaction.
    &quot;cardSignals&quot;: { # Signals describing the payment card used in this transaction. # Output only. Signals describing the payment card or cards used in this transaction.
      &quot;cardLabels&quot;: [ # Output only. The labels for the payment card in this transaction.
        &quot;A String&quot;,
      ],
    },
    &quot;userSignals&quot;: { # Signals describing the user involved in this transaction. # Output only. Signals describing the end user in this transaction.
      &quot;activeDaysLowerBound&quot;: 42, # Output only. This user (based on email, phone, and other identifiers) has been seen on the internet for at least this number of days.
      &quot;syntheticRisk&quot;: 3.14, # Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic components in their identity, such as a randomly generated email address, temporary phone number, or fake shipping address.
    },
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.
  &quot;phoneFraudAssessment&quot;: { # Assessment for Phone Fraud # Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are provided. Account defender and SMS toll fraud protection need to be enabled.
    &quot;smsTollFraudVerdict&quot;: { # Information about SMS toll fraud. # Output only. Assessment of this phone event for risk of SMS toll fraud.
      &quot;reasons&quot;: [ # Output only. Reasons contributing to the SMS toll fraud verdict.
        &quot;A String&quot;,
      ],
      &quot;risk&quot;: 3.14, # Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).
    },
  },
  &quot;privatePasswordLeakVerification&quot;: { # Private password leak verification info. # Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
    &quot;encryptedLeakMatchPrefixes&quot;: [ # Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of `reencrypted_user_credentials_hash`
      &quot;A String&quot;,
    ],
    &quot;encryptedUserCredentialsHash&quot;: &quot;A String&quot;, # Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through `reencrypted_user_credentials_hash`.
    &quot;lookupHashPrefix&quot;: &quot;A String&quot;, # Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.
    &quot;reencryptedUserCredentialsHash&quot;: &quot;A String&quot;, # Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` field. It is used to match potential password leaks within `encrypted_leak_match_prefixes`.
  },
  &quot;riskAnalysis&quot;: { # Risk analysis result for an event. # Output only. The risk analysis result for the event being assessed.
    &quot;challenge&quot;: &quot;A String&quot;, # Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
    &quot;extendedVerdictReasons&quot;: [ # Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
      &quot;A String&quot;,
    ],
    &quot;reasons&quot;: [ # Output only. Reasons contributing to the risk analysis verdict.
      &quot;A String&quot;,
    ],
    &quot;score&quot;: 3.14, # Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).
    &quot;verifiedBots&quot;: [ # Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
      { # Bot information and metadata.
        &quot;botType&quot;: &quot;A String&quot;, # Optional. Enumerated field representing the type of bot.
        &quot;name&quot;: &quot;A String&quot;, # Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case.
      },
    ],
  },
  &quot;tokenProperties&quot;: { # Properties of the provided event token. # Output only. Properties of the provided event token.
    &quot;action&quot;: &quot;A String&quot;, # Output only. Action name provided at token generation.
    &quot;androidPackageName&quot;: &quot;A String&quot;, # Output only. The name of the Android package with which the token was generated (Android keys only).
    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp corresponding to the generation of the token.
    &quot;hostname&quot;: &quot;A String&quot;, # Output only. The hostname of the page on which the token was generated (Web keys only).
    &quot;invalidReason&quot;: &quot;A String&quot;, # Output only. Reason associated with the response when valid = false.
    &quot;iosBundleId&quot;: &quot;A String&quot;, # Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
    &quot;valid&quot;: True or False, # Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A reCAPTCHA Enterprise assessment resource.
  &quot;accountDefenderAssessment&quot;: { # Account defender risk assessment. # Output only. Assessment returned by account defender when an account identifier is provided.
    &quot;labels&quot;: [ # Output only. Labels for this request.
      &quot;A String&quot;,
    ],
  },
  &quot;accountVerification&quot;: { # Information about account verification, used for identity verification. # Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
    &quot;endpoints&quot;: [ # Optional. Endpoints that can be used for identity verification.
      { # Information about a verification endpoint that can be used for 2FA.
        &quot;emailAddress&quot;: &quot;A String&quot;, # Email address for which to trigger a verification request.
        &quot;lastVerificationTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last successful verification for the endpoint, if any.
        &quot;phoneNumber&quot;: &quot;A String&quot;, # Phone number for which to trigger a verification request. Should be given in E.164 format.
        &quot;requestToken&quot;: &quot;A String&quot;, # Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.
      },
    ],
    &quot;languageCode&quot;: &quot;A String&quot;, # Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.
    &quot;latestVerificationResult&quot;: &quot;A String&quot;, # Output only. Result of the latest account verification challenge.
    &quot;username&quot;: &quot;A String&quot;, # Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`.
  },
  &quot;assessmentEnvironment&quot;: { # The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user. # Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.
    &quot;client&quot;: &quot;A String&quot;, # Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module&#x27;s project. Examples include: - &quot;github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager&quot; - &quot;wordpress.org/plugins/recaptcha-something&quot;
    &quot;version&quot;: &quot;A String&quot;, # Optional. The version of the client module. For example, &quot;1.0.0&quot;.
  },
  &quot;event&quot;: { # The event being assessed. # Optional. The event being assessed.
    &quot;expectedAction&quot;: &quot;A String&quot;, # Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise.
    &quot;express&quot;: True or False, # Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference an Express site key.
    &quot;firewallPolicyEvaluation&quot;: True or False, # Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response.
    &quot;fraudPrevention&quot;: &quot;A String&quot;, # Optional. The Fraud Prevention setting for this assessment.
    &quot;hashedAccountId&quot;: &quot;A String&quot;, # Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
    &quot;headers&quot;: [ # Optional. HTTP header information about the request.
      &quot;A String&quot;,
    ],
    &quot;ja3&quot;: &quot;A String&quot;, # Optional. JA3 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/salesforce/ja3.
    &quot;ja4&quot;: &quot;A String&quot;, # Optional. JA4 fingerprint for SSL clients. To learn how to compute this fingerprint, please refer to https://github.com/FoxIO-LLC/ja4.
    &quot;requestedUri&quot;: &quot;A String&quot;, # Optional. The URI resource the user requested that triggered an assessment.
    &quot;siteKey&quot;: &quot;A String&quot;, # Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token.
    &quot;token&quot;: &quot;A String&quot;, # Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.
    &quot;transactionData&quot;: { # Transaction data associated with a payment protected by reCAPTCHA Enterprise. # Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Enterprise Fraud Prevention and the FraudPreventionAssessment component in the response.
      &quot;billingAddress&quot;: { # Structured address format for billing and shipping addresses. # Optional. Address associated with the payment method when applicable.
        &quot;address&quot;: [ # Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
          &quot;A String&quot;,
        ],
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. The state, province, or otherwise administrative area of the address.
        &quot;locality&quot;: &quot;A String&quot;, # Optional. The town/city of the address.
        &quot;postalCode&quot;: &quot;A String&quot;, # Optional. The postal or ZIP code of the address.
        &quot;recipient&quot;: &quot;A String&quot;, # Optional. The recipient name, potentially including information such as &quot;care of&quot;.
        &quot;regionCode&quot;: &quot;A String&quot;, # Optional. The CLDR country/region of the address.
      },
      &quot;cardBin&quot;: &quot;A String&quot;, # Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.
      &quot;cardLastFour&quot;: &quot;A String&quot;, # Optional. The last four digits of the card.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Optional. The currency code in ISO-4217 format.
      &quot;gatewayInfo&quot;: { # Details about the transaction from the gateway. # Optional. Information about the payment gateway&#x27;s response to the transaction.
        &quot;avsResponseCode&quot;: &quot;A String&quot;, # Optional. AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).
        &quot;cvvResponseCode&quot;: &quot;A String&quot;, # Optional. CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization).
        &quot;gatewayResponseCode&quot;: &quot;A String&quot;, # Optional. Gateway response code describing the state of the transaction.
        &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the gateway service (for example, stripe, square, paypal).
      },
      &quot;items&quot;: [ # Optional. Items purchased in this transaction.
        { # Line items being purchased in this transaction.
          &quot;merchantAccountId&quot;: &quot;A String&quot;, # Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
          &quot;name&quot;: &quot;A String&quot;, # Optional. The full name of the item.
          &quot;quantity&quot;: &quot;A String&quot;, # Optional. The quantity of this item that is being purchased.
          &quot;value&quot;: 3.14, # Optional. The value per item that the user is paying, in the transaction currency, after discounts.
        },
      ],
      &quot;merchants&quot;: [ # Optional. Information about the user or users fulfilling the transaction.
        { # Details about a user&#x27;s account involved in the transaction.
          &quot;accountId&quot;: &quot;A String&quot;, # Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
          &quot;creationMs&quot;: &quot;A String&quot;, # Optional. The epoch milliseconds of the user&#x27;s account creation.
          &quot;email&quot;: &quot;A String&quot;, # Optional. The email address of the user.
          &quot;emailVerified&quot;: True or False, # Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
          &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. The phone number of the user, with country code.
          &quot;phoneVerified&quot;: True or False, # Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
        },
      ],
      &quot;paymentMethod&quot;: &quot;A String&quot;, # Optional. The payment method for the transaction. The allowed values are: * credit-card * debit-card * gift-card * processor-{name} (If a third-party is used, for example, processor-paypal) * custom-{name} (If an alternative method is used, for example, custom-crypto)
      &quot;shippingAddress&quot;: { # Structured address format for billing and shipping addresses. # Optional. Destination address if this transaction involves shipping a physical item.
        &quot;address&quot;: [ # Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
          &quot;A String&quot;,
        ],
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Optional. The state, province, or otherwise administrative area of the address.
        &quot;locality&quot;: &quot;A String&quot;, # Optional. The town/city of the address.
        &quot;postalCode&quot;: &quot;A String&quot;, # Optional. The postal or ZIP code of the address.
        &quot;recipient&quot;: &quot;A String&quot;, # Optional. The recipient name, potentially including information such as &quot;care of&quot;.
        &quot;regionCode&quot;: &quot;A String&quot;, # Optional. The CLDR country/region of the address.
      },
      &quot;shippingValue&quot;: 3.14, # Optional. The value of shipping in the specified currency. 0 for free or no shipping.
      &quot;transactionId&quot;: &quot;A String&quot;, # Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
      &quot;user&quot;: { # Details about a user&#x27;s account involved in the transaction. # Optional. Information about the user paying/initiating the transaction.
        &quot;accountId&quot;: &quot;A String&quot;, # Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
        &quot;creationMs&quot;: &quot;A String&quot;, # Optional. The epoch milliseconds of the user&#x27;s account creation.
        &quot;email&quot;: &quot;A String&quot;, # Optional. The email address of the user.
        &quot;emailVerified&quot;: True or False, # Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
        &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. The phone number of the user, with country code.
        &quot;phoneVerified&quot;: True or False, # Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
      },
      &quot;value&quot;: 3.14, # Optional. The decimal value of the transaction in the specified currency.
    },
    &quot;userAgent&quot;: &quot;A String&quot;, # Optional. The user agent present in the request from the user&#x27;s device related to this event.
    &quot;userInfo&quot;: { # User information associated with a request protected by reCAPTCHA Enterprise. # Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.
      &quot;accountId&quot;: &quot;A String&quot;, # Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.
      &quot;createAccountTime&quot;: &quot;A String&quot;, # Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.
      &quot;userIds&quot;: [ # Optional. Identifiers associated with this user or request.
        { # An identifier associated with a user.
          &quot;email&quot;: &quot;A String&quot;, # Optional. An email address.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # Optional. A phone number. Should use the E.164 format.
          &quot;username&quot;: &quot;A String&quot;, # Optional. A unique username, if different from all the other identifiers and `account_id` that are provided. Can be a unique login handle or display name for a user.
        },
      ],
    },
    &quot;userIpAddress&quot;: &quot;A String&quot;, # Optional. The IP address in the request from the user&#x27;s device related to this event.
    &quot;wafTokenAssessment&quot;: True or False, # Optional. Flag for running Web Application Firewall (WAF) token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.
  },
  &quot;firewallPolicyAssessment&quot;: { # Policy config assessment. # Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation.
    &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.
      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
        },
      ],
      &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    },
    &quot;firewallPolicy&quot;: { # A FirewallPolicy represents a single matching pattern and resulting actions to take. # Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.
      &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
        { # An individual action. Each action represents what to do if a policy matches.
          &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
          },
          &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
          },
          &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
          },
          &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
          },
          &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
            &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
            &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
          },
          &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
            &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
          },
        },
      ],
      &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
      &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
      &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
      &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
    },
  },
  &quot;fraudPreventionAssessment&quot;: { # Assessment for Fraud Prevention. # Output only. Assessment returned by Fraud Prevention when TransactionData is provided.
    &quot;behavioralTrustVerdict&quot;: { # Information about behavioral trust of the transaction. # Output only. Assessment of this transaction for behavioral trust.
      &quot;trust&quot;: 3.14, # Output only. Probability of this transaction attempt being executed in a behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;cardTestingVerdict&quot;: { # Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details. # Output only. Assessment of this transaction for risk of being part of a card testing attack.
      &quot;risk&quot;: 3.14, # Output only. Probability of this transaction attempt being part of a card testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;riskReasons&quot;: [ # Output only. Reasons why the transaction is probably fraudulent and received a high transaction risk score.
      { # Risk reasons applicable to the Fraud Prevention assessment.
        &quot;reason&quot;: &quot;A String&quot;, # Output only. Risk reasons applicable to the Fraud Prevention assessment.
      },
    ],
    &quot;stolenInstrumentVerdict&quot;: { # Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase. # Output only. Assessment of this transaction for risk of a stolen instrument.
      &quot;risk&quot;: 3.14, # Output only. Probability of this transaction being executed with a stolen instrument. Values are from 0.0 (lowest) to 1.0 (highest).
    },
    &quot;transactionRisk&quot;: 3.14, # Output only. Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest).
  },
  &quot;fraudSignals&quot;: { # Fraud signals describing users and cards involved in the transaction. # Output only. Fraud Signals specific to the users involved in a payment transaction.
    &quot;cardSignals&quot;: { # Signals describing the payment card used in this transaction. # Output only. Signals describing the payment card or cards used in this transaction.
      &quot;cardLabels&quot;: [ # Output only. The labels for the payment card in this transaction.
        &quot;A String&quot;,
      ],
    },
    &quot;userSignals&quot;: { # Signals describing the user involved in this transaction. # Output only. Signals describing the end user in this transaction.
      &quot;activeDaysLowerBound&quot;: 42, # Output only. This user (based on email, phone, and other identifiers) has been seen on the internet for at least this number of days.
      &quot;syntheticRisk&quot;: 3.14, # Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic components in their identity, such as a randomly generated email address, temporary phone number, or fake shipping address.
    },
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.
  &quot;phoneFraudAssessment&quot;: { # Assessment for Phone Fraud # Output only. Assessment returned when a site key, a token, and a phone number as `user_id` are provided. Account defender and SMS toll fraud protection need to be enabled.
    &quot;smsTollFraudVerdict&quot;: { # Information about SMS toll fraud. # Output only. Assessment of this phone event for risk of SMS toll fraud.
      &quot;reasons&quot;: [ # Output only. Reasons contributing to the SMS toll fraud verdict.
        &quot;A String&quot;,
      ],
      &quot;risk&quot;: 3.14, # Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).
    },
  },
  &quot;privatePasswordLeakVerification&quot;: { # Private password leak verification info. # Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
    &quot;encryptedLeakMatchPrefixes&quot;: [ # Output only. List of prefixes of the encrypted potential password leaks that matched the given parameters. They must be compared with the client-side decryption prefix of `reencrypted_user_credentials_hash`
      &quot;A String&quot;,
    ],
    &quot;encryptedUserCredentialsHash&quot;: &quot;A String&quot;, # Optional. Encrypted Scrypt hash of the canonicalized username+password. It is re-encrypted by the server and returned through `reencrypted_user_credentials_hash`.
    &quot;lookupHashPrefix&quot;: &quot;A String&quot;, # Required. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It is used to look up password leaks associated with that hash prefix.
    &quot;reencryptedUserCredentialsHash&quot;: &quot;A String&quot;, # Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` field. It is used to match potential password leaks within `encrypted_leak_match_prefixes`.
  },
  &quot;riskAnalysis&quot;: { # Risk analysis result for an event. # Output only. The risk analysis result for the event being assessed.
    &quot;challenge&quot;: &quot;A String&quot;, # Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
    &quot;extendedVerdictReasons&quot;: [ # Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
      &quot;A String&quot;,
    ],
    &quot;reasons&quot;: [ # Output only. Reasons contributing to the risk analysis verdict.
      &quot;A String&quot;,
    ],
    &quot;score&quot;: 3.14, # Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).
    &quot;verifiedBots&quot;: [ # Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
      { # Bot information and metadata.
        &quot;botType&quot;: &quot;A String&quot;, # Optional. Enumerated field representing the type of bot.
        &quot;name&quot;: &quot;A String&quot;, # Optional. Enumerated string value that indicates the identity of the bot, formatted in kebab-case.
      },
    ],
  },
  &quot;tokenProperties&quot;: { # Properties of the provided event token. # Output only. Properties of the provided event token.
    &quot;action&quot;: &quot;A String&quot;, # Output only. Action name provided at token generation.
    &quot;androidPackageName&quot;: &quot;A String&quot;, # Output only. The name of the Android package with which the token was generated (Android keys only).
    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp corresponding to the generation of the token.
    &quot;hostname&quot;: &quot;A String&quot;, # Output only. The hostname of the page on which the token was generated (Web keys only).
    &quot;invalidReason&quot;: &quot;A String&quot;, # Output only. Reason associated with the response when valid = false.
    &quot;iosBundleId&quot;: &quot;A String&quot;, # Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
    &quot;valid&quot;: True or False, # Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment).
  },
}</pre>
</div>

</body></html>